import * as types from '../constants/actionTypes';

function card_name_change(card_name){

    return async (dispatch) =>{
        dispatch({type:types.CARDNAME_CHANGE, bank_name:card_name});
    };
}

function card_province_change(card_province){

    return async (dispatch) =>{
        dispatch({type:types.CARDPROVINCE_CHANGE, card_province:card_province});
    };
}

function card_city_change(card_city){

    return async (dispatch) =>{
        dispatch({type:types.CARDCITY_CHANGE, card_city:card_city});
    };
}

module.exports = {card_name_change, card_province_change, card_city_change};
